<?php

use App\AbstractFactory\ArmyUnit\Army;
use App\AbstractFactory\ArmyUnit\Archer;
use App\AbstractFactory\ArmyUnit\LaserCannoUnit;

require './vendor/autoload.php';

$mainArmy = new Army();

$mainArmy->addUnit( new Archer() ); # 4

$mainArmy->addUnit( new LaserCannoUnit() ); # 44

$subArmy = new Army();

$subArmy->addUnit( new Archer() ); # 4
$subArmy->addUnit( new LaserCannoUnit() ); # 44
$subArmy->addUnit( new LaserCannoUnit() ); # 44

$mainArmy->addUnit($subArmy);

print "fire!!! : {$mainArmy->bombardStrength()}\n";
